<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<meta name="Generator" content="Code By GauPanda" />
<meta name="keywords" content="' . $set ['key'] . '" />
</head>
<?php
ob_start ();
error_reporting ( 0 );
require_once ("data.php");
$set = mysql_fetch_array ( mysql_query ( "select * from caidat" ) );
//Khởi tạo session
@session_start ();
//Lấy session user_id
$user_id = intval ( $_SESSION ['user_id'] );
//Kiểm tra tài khoản
$sql_query = @mysql_query ( "SELECT * FROM taikhoan WHERE id='{$user_id}'" );
$taikhoan = @mysql_fetch_array ( $sql_query );
require_once ("f.php");
//echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/><meta name="Generator" content="Code By DaiJava - DaiJava - DaiJava - Ly Nhan - Ha Nam" /><meta name="keywords" content="' . $set ['key'] . '" /></head><body><b class="baiviet">' . date ( "d.m.y - H:i" ) . '</b><br>
//<link rel="shortcut icon" href="' . $set ['home'] . '/fav.ico"/><link rel="stylesheet" href="' . $set ['home'] . '/new.css" type="text/css" /><center class="logo"><h1>gaupanda.com</h1></center>';
?>

<body>
<b class="baiviet"><?php echo date( "d.m.y - H:i" ); ?> </b><br>
<link rel="shortcut icon" href="<?php echo $set['home'] . '/fav.ico';?>"/>
<link rel="stylesheet" href="<?php echo $set['home'] . '/new.css';?>" type="text/css" />
<center class="logo"><h1>gaupanda.com</h1></center>
<div class="main_menu">
<?php
if ($user_id) {
	echo '<div class="main_menu">Chào <b style="color:red">' . $taikhoan ['nick'] . '</b>!!';
	if ($taikhoan ['quyen'] == 2) {
		echo ' | <a href="' . $set ['home'] . '/cpanel.php" style="color:blue">Cpanel</a>';
	}
	echo '</div>';
	echo '<div style="background:#00a6ff; border-bottom: 5px solid #00a6ff;text-align:center;font-size=10px;">';
	echo '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" valign=""><tr>';
	echo '<td width="35%" bgcolor="" align="center"><font color="#ffffff"><a href="' . $set ['home'] . '"><b>Trang Chủ</b></a></font></td>';
	echo '<td width="35%" bgcolor="" align="center"><a href="' . $set ['home'] . '/game/giohang.php" style="color:black"><div class="tab">Giỏ Hàng</div></a></td>';
	echo '<td width="30%" bgcolor="" align="center"><a href="' . $set ['home'] . '/thoat.php" style="color:black"><div class="tab">Thoát</div></a></td>';
	echo '</tr></table></div>';
} else {
	echo '<div class="main_menu">Chào <b style="color:red">' . $dt . '</b>!!</div>';
	echo '<div style="background:#00a6ff; border-bottom: 5px solid #00a6ff;text-align:center;font-size=10px;">';
	echo '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" valign=""><tr>';
	echo '<td width="35%" bgcolor="" align="center"><font color="#ffffff"><a href="' . $set ['home'] . '"><b>Trang Chủ</b></a></font></td>';
	echo '<td width="35%" bgcolor="" align="center"><a href="' . $set ['home'] . '/log.php" style="color:black"><div class="tab">Login</div></a></td>';
	echo '<td width="35%" bgcolor="" align="center"><a href="' . $set ['home'] . '/reg.php" style="color:black"><div class="tab">Sign Up</div></a></td>';
	echo '</tr></table></div>';
}
echo '<br>';
?>


